package com.migo.service.impl;

import com.migo.dao.TActivationDao;
import com.migo.entity.TActivationEntity;
import com.migo.service.TActivationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("tActivationService")
public class TActivationServiceImpl implements TActivationService {
	@Autowired
	private TActivationDao tActivationDao;
	
	@Override
	public TActivationEntity queryObject(Long id){
		return tActivationDao.queryObject(id);
	}

	@Override
	public TActivationEntity queryObjectForEncrypt(String encrypt) {
		return tActivationDao.queryObjectForEncrypt(encrypt);
	}

	@Override
	public List<TActivationEntity> queryObjectForPsn(String psn) {
		return tActivationDao.queryObjectForPsn(psn);
	}

	@Override
	public List<TActivationEntity> queryList(Map<String, Object> map){
		return tActivationDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tActivationDao.queryTotal(map);
	}
	
	@Override
	public void save(TActivationEntity tActivation){
		tActivationDao.save(tActivation);
	}
	
	@Override
	public void update(TActivationEntity tActivation){
		tActivationDao.update(tActivation);
	}
	
	@Override
	public void delete(Long id){
		tActivationDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tActivationDao.deleteBatch(ids);
	}
	
}
